{% extends "master.html" %}
{% block breadcrumb %}
    <ul id="breadcrumb">
        <li><a href="/group/" title="Home"><img src="/public/images/home.png" alt="Home" class="home" /></a></li>
        <li>{{group.title}}</li>
    </ul>
{% endblock %}
{% block content %}

<br>

<h1 class="headlineText">{{group.title}}</h1>

<div class="new">
    <a href="/newtopic/{{group.key.id}}" class="button"><span>
    <img src="/public/images/plus.png" width="13" height="13" /> Topic</span></a>
</div>
<br>

{% for t in topics %}
<div class="topic">
    <a href="/topic/{{t.topic.key.id}}"><h3>{{ t.topic.topic }}</h3></a>
    <div class="numPosts">
        {{t.count}} posts 
        <span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
        {% if moderator %}
          <a href="/modifytopic/{{t.topic.key.id}}" class="options">Modify</a>
      	  <a href="/deletetopic/{{t.topic.key.id}}" class="options">Delete</a>
        {% endif %}
        
    </div>
</div>
{% endfor %}

{% endblock %}
